/*
 * Created on Jan 22, 2011 by Eng. Julian Rousselot
 *  
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

package main;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Stroke;
import java.awt.Toolkit;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.geom.Rectangle2D;

import javax.swing.JPanel;

import ar.com.visualAORE.view.VisualDesktopFrame;

public class AWTRectangle extends Container {
  Stroke drawingStroke = new BasicStroke(3);
  Rectangle2D rect = new Rectangle2D.Double(0, 0, 120, 80);//X, Y, W, H
  Rectangle2D rect2 = new Rectangle2D.Double(0, 70, 120, 80);
  
  
  public AWTRectangle(VisualDesktopFrame vdf){

  }
  
  public void paint(Graphics g) {
    Graphics2D g1 = (Graphics2D)g;
   // g1.setStroke(drawingStroke);
    g1.draw(rect);
    g1.setPaint(Color.yellow);
    g1.fill(rect);
    
    g1.draw(rect2);
    g1.setPaint(Color.red);
    g1.fill(rect2);
    }
  public static void main(String args[]) {
    /*Frame frame = new AWTRectangle();
    frame.addWindowListener(new WindowAdapter(){
      public void windowClosing(WindowEvent we){
        System.exit(0);
      }
    });
    frame.setSize(200, 200);
    frame.setVisible(true);*/
  }
}